<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:head>
  	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>AVA</title>
</h:head>
		
<h:body>
	<div>
		<ui:insert name="mensagem"/>
		<p:messages id="messages" showDetail="false" />
		<h:form enctype="multipart/form-data" id="form" acceptcharset="UTF-8">
			<input type="hidden" value="&#153;" name="bugIE" />
			<p:panel header="Login">
				<h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
					<h:outputText value="Login:" />
					<p:inputText id="login" value="#{loginMB.login}"/>
					
					<h:outputText value="Senha:" />
					<p:password id="senha" value="#{loginMB.senha}"/>
					
					<h:outputText value="Perfil:" />
					<p:selectOneMenu value="#{loginMB.perfil}">  
						<f:selectItem itemLabel="Administrador" itemValue="administrador" /> 
						<f:selectItem itemLabel="Funcionário" itemValue="funcionario" /> 
			      	</p:selectOneMenu>
					
					<p:commandButton value="Entrar" action="#{loginMB.confirmar}" ajax="false" />
				</h:panelGrid>
			
			</p:panel>
		</h:form>
	</div>
</h:body> 
</html>